<?php


namespace app\api\behavior\course;


use app\api\service\CourseRemindService;

class Remind
{
    public function run($model)
    {
        $this->begin();
        return true;
    }

    public function begin()
    {
        $remindTime = config('setting.course')['begin_time'];
        if (!$remindTime) {
            return false;
        }
        CourseRemindService::remind($remindTime, 1, 0);
        return true;
    }
}